#ifndef POINT_H_
#define POINT_H_
#include <iostream>
using namespace std;

//int y = x++;
//Point p = p1++;
class Point{
friend ostream& operator << (ostream& out, const Point& rhs);
private:
	int 	x;
	int 	y;
public:
	Point(int x = 0, int y = 0);
	//set get...
	int getX() const { return this->x; }
	int getY() const { return this->y; }
	//前++
	const Point& operator ++ ();
	//int用来标记后++
	const Point operator ++ (int);

	void display() const ;

	//ostream& operator << (/*this*/ostream& out);		//this一定是在第一个参数的位置
};

const Point operator + (const Point& lhs, const Point& rhs);

//只能重载为全局函数
ostream& operator << (ostream& out, const Point& rhs);

//istream& operator >> (istream& in, Point& rhs);
		
//cout  << p << endl;		extern ostream cout; extern istream cin;   ostream << Point

#endif
